package net.xfok.chemical;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Sub extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
	private Button hwpcx,flfgcx;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.sub);
        hwpcx=(Button)findViewById(R.id.shwpcx);
        hwpcx.setOnClickListener(this);
        flfgcx=(Button)findViewById(R.id.flfgcx);       
        flfgcx.setOnClickListener(this);
    }

	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.shwpcx:
			Intent intent=new Intent(this,SearchChemical.class);
			startActivity(intent);
			break;
		case R.id.flfgcx:
			intent=new Intent(this,List.class);
			startActivity(intent);
			break;
		default:
			break;
		}
	}
}